import json from '@rollup/plugin-json';

const format = process.env.BUILD_FORMAT || 'es';

export default {
    input: 'src/main.js',
    output: {
        format,
        file: `dist/index.${format}.js`,
        sourcemap: true,
        name: 'JSAuthenticationSdk',
        exports: 'auto',
    },
    plugins: [json()],
};